home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7740 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  955 b 

  1. Path: mudskipper.cac.psu.edu!user
  2. From: fcusack@tdx.org (frank.)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: gettimeofday() makes me mad !
  5. Date: Wed, 28 Feb 1996 11:19:24 -0400
  6. Organization: Soylent Green is People!!
  7. Message-ID: <fcusack-2802961119240001@mudskipper.cac.psu.edu>
  8. References: <4gnkth$4on@piston.ecp.fr> <4gu1ue$39m@news-f.iadfw.net>
  9. NNTP-Posting-Host: mudskipper.cac.psu.edu
  10.  
  11. In article <4gu1ue$39m@news-f.iadfw.net>, alpet@airmail.net (Adam
  12. Peterson) wrote:
  13.  
  14. > >PROBLEM : I'm trying to make a little program which must repeat an
  15. > >action every .2 second for example ( less than 1 sec anyway). time()
  16. > >wouldn't fit, so I searched and found the function gettimeofday() in
  17. > You are on a Unix system, any reason you are not using 'sleep'?
  18.  
  19. sleep only works in whole seconds.
  20.  
  21. ~Frank
  22.  -- I am Pentium of Borg.  Division is futile.  You will be approximated. --
  23.  -- PGP ID: 1C0F6685 | NCB#56 | Visit me --> http://www.tdx.org/~fcusack/ --
  24.